package main

import (
	"fmt"
)

func main() {
	//p := &Person{
	//	Name:     "zhangsan",
	//	Birthday: "2020-10-10 13:23:12",
	//	Addr:     "浙江宁波",
	//}
	//s1 := Student{
	//	Person:    *p,
	//	StudentNo: "001",
	//}
	//birth := s1.Birthday
	//fmt.Println("生日是", birth)
	//jsonstr, _ := json.Marshal(s1)
	//fmt.Println(string(jsonstr))

	test2()
}

type Person struct {
	Name     string
	Birthday string
	Addr     string
}

type Student struct {
	Person
	StudentNo string
}

func (stu *Student) GetStudent() *Student {
	return stu
}

type E struct {
	int
	Age  int
	Name string
}

func test2() {
	e := E{
		Name: "zhangsan",
		int:  12,
		Age:  343,
	}

	fmt.Println(e)
}
